<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="radio" class="form-check-input" name="row[type]" value="1" checked/>环境
            <input type="radio" class="form-check-input" name="row[type]" value="2"/> 产品
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">上级分类:</label>
        <div class="col-xs-12 col-sm-8">
            <!--            <input id="c-pid" data-rule="required" class="form-control" name="row[pid]" type="number" value="0">-->
            <input id="c-pid" data-rule="required" class="form-control selectpage" data-rule="required"
                   data-source="product/category/categoryTreeLists" data-primary-key="id" data-field="name"
                   name="row[pid]" type="text" data-pagination="true" data-search-field="name">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-cate_img" class="control-label col-xs-12 col-sm-2">分类图片:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-cate_img" data-rule="" class="form-control" size="50" name="row[cate_img]"
                       type="text"
                       value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-cate_img" class="btn btn-danger faupload"
                                  data-input-id="c-cate_img"
                                  data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
                                  data-multiple="false" data-preview-id="p-cate_img"><i
                            class="fa fa-upload"></i> 上传</button></span>
                    <span><button type="button" id="fachoose-cate_img" class="btn btn-primary fachoose"
                                  data-input-id="c-cate_img" data-mimetype="image/*" data-multiple="false"><i
                            class="fa fa-list"></i> 选择</button></span>
                </div>
                <span class="msg-box n-right" for="c-cate_img"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-cate_img"></ul>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
